﻿using ECO.Admin.Core.Entities;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ECO.Admin.Core.EntityCore
{
    /// <summary>
    /// 实体通用抽象类，继承自 EntityBase，同时内置 CreatedTime，UpdatedTime 字段
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class Entity<T> : EntityBase<T>
    {

        /// <summary>
        /// 创建时间
        /// </summary>
        public virtual DateTime CreateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 修改时间
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public virtual DateTime UpdateTime { get; set; }

    }
}
